<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file ="include/base.jsp"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>My JSP 'showidea.jsp' starting page</title>
	<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">
  </head>
  
  <body class="body">
    <%@ include file="include/top.jsp" %>
    <div class="container" >
	  <div class="row">
		<div class="span3">
			<%@include file="include/left.jsp" %>
		</div>
		<div class="span9">
			<ul class="breadcrumb" style="margin-bottom:0px;border-radius: 3px 3px 0 0;margin-top:15px">
				<li class="active">
					<a href="idea.html"><i class="icon-fire"></i>想法</a>>${idea.title }
				</li>
			</ul>
			<div class="well">
				<div class="page-header">
					<h3>${idea.title }&nbsp;&nbsp;<small>${employee.username }发布于${idea.createtime }</small></h3>
					<p>${idea.content }</p>
				</div>
				
				  
				<div class="line">
					评论
				</div>
				<form action="ideacomment.jspx" method="post">
						<input type="hidden" name="ideaid" value="${idea.id }">
						<textarea name="content"  class="span8" rows="5"></textarea>
						<br/>
						<button type="submit">发布</button>
				</form>
				 <c:forEach items="${list}" var ="ic" varStatus="vs">
				 
				
				<blockquote>
						${ic.content }
						<small>
							${ic.employee.username }发布于 ${ic.createtime }
							
							<a href="delcomment.jspx?id=${ic.id }&ideaid=${ic.ideaid}" title="删除"><i class="icon-trash"></i></a>
						</small>
					</blockquote>
				</c:forEach>
				
				
				<a href="idea.jspx">←返回想法列表</a>
			</div>
			

		</div>
		
	  </div>
	</div>
  </body>
</html>
